import request from '@/utils/request'

// 查询策略和类型的中间表列表
export function listStrategyType(query) {
  return request({
    url: '/strategyType/list',
    method: 'get',
    params: query
  })
}

// 查询策略和类型的中间表详细
export function getStrategyType(strategyId) {
  return request({
    url: '/strategyType/selectOne/' + strategyId,
    method: 'get'
  })
}

// 新增策略和类型的中间表
export function addStrategyType(data) {
  return request({
    url: '/strategyType/add',
    method: 'post',
    data: data
  })
}

// 修改策略和类型的中间表
export function updateStrategyType(data) {
  return request({
    url: '/strategyType/update',
    method: 'put',
    data: data
  })
}

// 删除策略和类型的中间表
export function delStrategyType(strategyIds,typeIds) {
  return request({
    url: '/strategyType/del/' + strategyIds + "/" + typeIds ,
    method: 'delete'
  })
}
